Summary:
The Einhugur UUID7 Plugin is to generate version 7 UUID’s.
The plugin uses high quality random bytes API’s on all platforms.
UUID v7 benefits:
- Time-Sortability. UUIDv7 values are time-sortable, which means you can sort them in increasing order based on when they were generated. This makes time-based database queries more efficient and intuitive.
- Precise Timestamping: With a granularity of up to 50 nanoseconds as of previous drafts (but a default of 1 millisecond as of writing, see draft RFC4122), UUIDv7 offers excellent precision. This, when combined with the randomness, essentially guarantees that collisions (even among globally distributed systems!) are impossible.
- Global Uniqueness: Like other UUIDs, UUIDv7 ensures global uniqueness. This means you can generate IDs independently across different systems or nodes, and they won't collide.
UUID v7 is better for databases because of natural sorting and they make the indexes better.
Remarks:
To install the plugin put it in your Xojo Plugin directory and then start Xojo.
Agreement:
Einhugur UUID7 Plugin for Xojo can be used free of charge for any use.
Einhugur Software and the author, are in no way responsible for the bugs that might be found in this product. However, Einhugur Software will do its best to fix the bugs.
This software is provided by Einhugur software 'as is' without any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for particular purpose. In no event shall Einhugur Software or its developers be liable for any direct, indirect, incidental, special, exemplary or consequential damages (Including, but not limited to, procurement of substitute goods or services; loss of use, data or profits; or business interruption) however caused any on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.